home *** CD-ROM | disk | FTP | other *** search
/ Internet Surfer 2.0 / Internet Surfer 2.0 (Wayzata Technology) (1996).iso / pc / text / mac / faqs.137 < prev    next >
Encoding:
Text File  |  1996-02-12  |  27.5 KB  |  892 lines

  1. Frequently Asked Questions (FAQS);faqs.137
  2.  
  3.  
  4. RCB:Richards Bay, South Africa
  5. RDZ:Rodez, France
  6. REC:Recife, PE, Brazil
  7. REG:Reggio Calabria, Italy
  8. REK:Reykjavik, Iceland
  9. REU:Reus, Spain
  10. RFP:Raiatea, Society Islands
  11. RGI:Rangiroa, Tuamaotou, Pacific
  12. RGN:Yangoon, Myanmar
  13. RHO:Rhodos, Greece
  14. RIA:Santa Maria, RS, Brazil
  15. RIC:Richmond, NSW Australia
  16. RIG:Rio Grande, RS, Brazil
  17. RIK:Riga, Latvia
  18. RIO:Rio de Janeiro, RJ, Brazil
  19. RIX:Riga, Lithuania
  20. RJK:Rijeka, Yugoslavia
  21. RKT:Ras al Khaymah, UAE
  22. RLT:Arlit, Niger
  23. RMI:Rimini, Italy
  24. RNB:Ronneby, Sweden
  25. RNE:Roanne, France
  26. RNN:Roenne, Denmark
  27. RNS:Rennes, France
  28. ROK:Rockhampton, Australia
  29. ROM:Rom, Italy
  30. ROS:Rosario, Argentina
  31. ROT:Rotorua, New Zealand
  32. ROU:Ruse, Bulgaria
  33. RRG:Rodrigues Insel, Mauritius
  34. RSD:Rock Sound, Bahamas
  35. RTM:Rotterdam, The Netherlands
  36. RUH:Riyadh, Saudi Arabia
  37. RUN:Saint Denis de la Reunion, Reunion, Indian Ocean
  38. RVN:Rovaniemi, Finland
  39. RWP:Rawalpindi, Pakistan
  40. RYK:Rahim Yar Khan, Pakistan
  41. SAH:Sanaa (Sana'a), Yemen
  42. SAL:San Salvador, El Salvador
  43. SAO:Sao Paulo, Brazil
  44. SAP:San Pedro Sula, Honduras
  45. SAY:Salisbury, Zimbabwe
  46. SBK:Saint Brieuc, France
  47. SBU:Springbok, South Africa
  48. SBW:Sibu, Malaysia
  49. SCL:Santiago de Chile, Chile
  50. SCN:Saarbruecken, Germany
  51. SCQ:Santiago de Compostela, Spain
  52. SDA:Bagdad - Saddam Int'l, Irak
  53. SDJ:Sendai, Japan
  54. SDL:Sundsvall, Sweden
  55. SDQ:Santo Domingo, Dominican Republic
  56. SDR:Santander, Spain
  57. SDT:Saidu Sharif, Pakistan
  58. SDU:Rio de Janeiro - Santos Dumont, RJ, Brazil
  59. SEB:Sehba, Libya
  60. SEL:Seoul, South Korea
  61. SEN:Southend, Great Britain
  62. SEZ:Mahe, Seychelles
  63. SFA:Sfax, Tunisia
  64. SFG:St. Martin, St. Martin
  65. SFJ:Soendre Stroemfjord, Greenland
  66. SGD:Soenderborg, Denmark
  67. SGN:Ho Chi Minh (Saigon), Vietnam
  68. SHA:Shanghai, China
  69. SHJ:Sharjah, UAE
  70. SID:Sal, Kap Verde
  71. SIN:Singapore, Singapore
  72. SIP:Simferopol, Ukrainia
  73. SIS:Sishen, South Africa
  74. SIX:Singleton, Australia
  75. SJJ:Sarajevo, Bosnia-Her.
  76. SJK:Sao Jose dos Lampos, SP, Brazil
  77. SJO:San Jose, Costa Rica
  78. SJP:Sao Jose do Rio Preto, SP, Brazil
  79. SJU:San Juan, Perto Rico
  80. SJY:Seinaejoki, Finland
  81. SKB:St. Kitts, Leeward Insel
  82. SKD:Samarkand, Uzbekistan
  83. SKG:Saloniki, Greece
  84. SKP:Skopje, Yugoslavia
  85. SKS:Skrydstrup, Denmark
  86. SKZ:Sukkur, Pakistan
  87. SLL:Salalah, Oman
  88. SLS:Silistra, Bulgaria
  89. SLU:St. Lucia - Vigle, St. Lucia
  90. SLZ:Sao Luis, MA, Brazil
  91. SMA:Santa Maria, Portugal
  92. SMI:Samos, Greece
  93. SNN:Shannon (Limerick), Ireland
  94. SOF:Sofia, Bulgaria
  95. SOG:Sogndal, Norway
  96. SOI:South Molle Island, Australia
  97. SON:Santo, Vanuatu
  98. SOT:Sodankylae, Finland
  99. SOU:Sothampton, Great Britain
  100. SPC:Santa Cruz de la Palma, Spain
  101. SPK:Saporro, Japan
  102. SPN:Saipan, Pacific
  103. SPU:Split, Yugoslavia
  104. SPY:San Pedro, Ivory Coast
  105. SRA:Santa Rosa, RS, Brazil
  106. SRZ:Santa Cruz de la Sierra, Bolivia
  107. SSA:Salvador, BA, Brazil
  108. SSG:Malabo, Equatorial Guinea
  109. SSH:Sharm el Sheik, Egypt
  110. SSZ:Santos, Brazil
  111. STM:Santarem, Brazil
  112. STN:Stansted (London), Great Britain
  113. STO:Stockholm, Sweden
  114. STR:Stuttgart, Germany
  115. STT:St. Thomas, Virgin Islands
  116. STV:Surat, India
  117. STX:St. Croix, Virgin Islands
  118. SUB:Surabaya, Indonesia
  119. SUF:Lamezia Terme, Italy
  120. SUL:Sui, Pakistan
  121. SUM:Agana, Guam
  122. SUV:Suva, Fiji
  123. SVD:St. Vincent, St. Vincent
  124. SVG:Stavanger, Norway
  125. SVL:Savonlinna, Finland
  126. SVO:Moscow - Sheremetyevo 2, Russia
  127. SVQ:Sevilla, Spain
  128. SWP:Swakopmund, Namibia
  129. SXB:Strassburg, France
  130. SXF:Berlin - Schoenefeld, Germany
  131. SXL:Sligo, Ireland
  132. SXM:St. Marteen, West Indian Isles
  133. SXR:Srinagar, India
  134. SYD:Sydney, Australia
  135. SYY:Stornway, Great Britain
  136. SZG:Salzburg, Austria
  137. SZK:Skukuza, South Africa
  138. SZZ:Stettin, Poland
  139. TAK:Takamatsu, Japan
  140. TAS:Tashkent, Uzbekistan
  141. TAT:Poprad (Tatry), CSFR
  142. TAY:Taipei - Sungshan, Taiwan
  143. TBS:Tiblissi (Tiflis), Georgia
  144. TBT:Tabatinga, AM, Brazil
  145. TBU:Nuku'alofa, Tonga
  146. TCA:Tennant Creek, Australia
  147. TCB:Treasure Cay, Bahamas
  148. TCI:Teneriffa, Spain
  149. TCU:Thaba'Nchu, South Africa
  150. TED:Thisted, Denmark
  151. TEM:Temora, Australia
  152. TER:Terceira, Portugal
  153. TEU:Te Anau, New Zealand
  154. TFF:Tefe, MA, Brazil
  155. TFN:Los Rodeos (Teneriffa), Spain
  156. TFS:Reina Sofia (Teneriffa), Spain
  157. TGD:Titograd, Yugoslavia
  158. TGU:Tegucigalpa, Honduras
  159. TGV:Targovishte, Bulgaria
  160. THE:Teresina, PI, Brazil
  161. THF:Berlin - Tempelhof, Germany
  162. THG:Biloela, Australia
  163. THR:Teheran, Iran
  164. TIA:Tirana, Albania
  165. TIF:Taif, Saudi Arabia
  166. TIP:Triplis, Libya
  167. TIS:Thursday Island, Australia
  168. TIU:Timaru, New Zealand
  169. TIV:Tivat, Yugoslavia
  170. TKS:Tokushima, Japan
  171. TKU:Turku, Finland
  172. TLL:Tallinn, Estonia
  173. TLS:Toulouse, France
  174. TLV:Tel Aviv, Israel
  175. TMP:Tampere, Finland
  176. TMS:Sao Tome, Sao Tome & Principe
  177. TMT:Porto  Trombetas, PA, Brazil
  178. TMW:Tamworth, Australia
  179. TMZ:Termez (Termes), Uzbekistan
  180. TNG:Tanger, Morocco
  181. TNR:Antananarivo (Tanannarive), Madagascar
  182. TOD:Tioman, Indonesia
  183. TOS:Tromsoe, Norway
  184. TOU:Touho, France, New Caledonia
  185. TPE:Taipei - Chiang Kaisek, Taiwan
  186. TPR:Tom Price, Australia
  187. TPS:Trapani, Italy
  188. TRD:Trondheim, Norway
  189. TRF:Sandefjord, Norway
  190. TRG:Tauranga, New Zealand
  191. TRN:Turin, Italy
  192. TRO:Taree, Australia
  193. TRS:Trieste, Italy
  194. TRV:Trivandrum, India
  195. TRZ:Tiruchirapally, India
  196. TSA:Taipei (Domestic ?), Taiwan
  197. TSB:Tsumeb, Namibia
  198. TSF:Treviso, Italy
  199. TSV:Townsville, Australia
  200. TUK:Turbat, Pakistan
  201. TUN:Tunis, Tunisia
  202. TUO:Taupo, New Zealand
  203. TUU:Tabuk, Saudi Arabia
  204. TWB:Toowoomba, Australia
  205. TWU:Tawau, Malaysia
  206. TXL:Berlin - Tegel, Germany
  207. TYN:Taiyuan, China
  208. TYO:Tokyo, Japan
  209. UAK:Narsarsuaq, Greenland
  210. UBA:Uberaba, MG, Brazil
  211. UDI:Uberlandia, MG, Brazil
  212. UEE:Queenstown, Australia
  213. UET:Quetta, Pakistan
  214. UIO:Quito, Ecuador
  215. UIP:Quimper, France
  216. UKB:Kobe, Japan
  217. ULD:Ulundi, South Africa
  218. ULN:Ulan Bator, Mongolia
  219. ULU:Ulan Ude, Russia
  220. UMR:Woomera, Australia
  221. UMU:Umuarama, PR, Brazil
  222. UPG:Ujung Pandang, Indonesia
  223. URC:Urumqi, China
  224. URG:Uruguaiana, RS, Brazil
  225. UTN:Upington, South Africa
  226. UTP:Utapao (Pattaya), Thailand
  227. UTT:Umtata, South Africa
  228. UVE:Oyem ??/Ouvea ??, Gabon/Loyautte
  229. UVF:St. Lucia - Hewanorra, St. Lucia
  230. UVL:New Valley, Egypt
  231. VAA:Vaasa, Finland
  232. VAP:Valparaiso, Chile
  233. VAR:Varna, Bulgaria
  234. VBY:Visby, Sweden
  235. VCE:Venice, Italy
  236. VCP:Sao Paulo - Viracopos, Brazil
  237. VDA:Elat - Ovula, Israel
  238. VDE:Valverde, Spain
  239. VEK:Velikiye Luki (Welikije Luki), Russia
  240. VFA:Victoria Falls, Zimbabwe
  241. VGO:Vigo, Spain
  242. VID:Vidin, Bulgaria
  243. VIE:Vienna, Austria
  244. VIJ:Virgin Gorda, Virgin Islands
  245. VIT:Vitoria, Spain
  246. VIX:Vitoria, ES, Brazil
  247. VKO:Moscow - Vnukovo, Russia
  248. VLC:Valencia, Spain
  249. VLI:Port Vila, Vanuatu
  250. VLL:Valladolid, Spain
  251. VLN:Valencia, Venezuela
  252. VNO:Vilnius, Lithuania
  253. VNS:Varanasi, India
  254. VOT:Votuporanga, SP, Brazil
  255. VRA:Varadero, Cuba
  256. VRK:Varkaus, Finland
  257. VRN:Verona, Italy
  258. VST:Vasteras, Sweden
  259. VTE:Vietiane, Laos
  260. VXO:Vaexjoe, Sweden
  261. VYD:Vryheid, South Africa
  262. WAG:Wanganui, New Zealand
  263. WAW:Warsaw, Poland
  264. WBE:Bealanana, Madagascar
  265. WDH:Windhoek - Int'l, Namibia
  266. WEI:Weipa, Australia
  267. WEL:Welkom, South Africa
  268. WGA:Wagga, Australia
  269. WHK:Whakatane, New Zealand
  270. WHM:Wickham, Australia
  271. WKA:Wanaka, New Zealand
  272. WIC:Wick, Great Britain
  273. WLG:Wellington, New Zealand
  274. WLM:Williamtown, NSW Australia
  275. WLS:Wallis, Wallis Archipel, Pacific
  276. WMB:Warrnambool, Australia
  277. WNS:Nawab Shah, Pakistan
  278. WOL:Wollongong, Australia
  279. WRE:Whangarei, New Zealand
  280. WSY:Airline Beach, Australia
  281. WSZ:Westport, New Zealand
  282. WUN:Wiluna, Australia
  283. WVB:Walvis Bay, South Africa
  284. WYA:Whyalla, Australia
  285. WYN:Wyndham, Australia
  286. XAP:Chapeco, SC, Brazil
  287. XMH:Manihi, Tuamaotou, Pacific
  288. XRY:Jerez de la Frontera, Spain
  289. YAO:Yaonde, Cameroon
  290. YNB:Yanbu, Saudi Arabia
  291. YOK:Yokohama, Japan
  292. YVA:Moroni, Comores
  293. ZAD:Zadar, Yugoslavia
  294. ZAG:Zagreb, Yugoslavia
  295. ZAZ:Zaragoza, Spain
  296. ZBO:Bowen, Australia
  297. ZDJ:Bern, Switzerland
  298. ZND:Zinder, Niger
  299. ZNE:Newman, Australia
  300. ZQN:Queenstown, New Zealand
  301. ZRH:Zurich, Switzerland
  302. ZSS:Sassandra, Ivory Coast
  303. ZTH:Zakynthos, Greece
  304. ZYL:Sylhet, Bangladesh
  305. --
  306. Larry Autry
  307. Silicon Graphics, St. Louis
  308. autry@sgi.com
  309. Xref: bloom-picayune.mit.edu comp.unix.aix:19918 news.answers:4629
  310. Path: bloom-picayune.mit.edu!enterpoop.mit.edu!news.media.mit.edu!micro-heart-of-gold.mit.edu!xn.ll.mit.edu!ames!sun-barr!cs.utexas.edu!mavrick!basto@cactus.org
  311. From: basto@cactus.org (Luis Basto)
  312. Newsgroups: comp.unix.aix,news.answers
  313. Subject: AIX Frequently Asked Questions (Part 1 of 2) [REPOST]
  314. Summary: This posting contains a list of Frequently Asked Questions
  315.          and their answers about AIX, IBM's version of Unix.
  316. Keywords: AIX RS/6000 questions answers
  317. Message-ID: <1071@mavrick.UUCP>
  318. Date: 16 Dec 92 06:26:56 GMT
  319. Expires: 15 Jan 93 01:23:45 GMT
  320. Sender: luis@mavrick.UUCP
  321. Reply-To: basto@cactus.org (Luis Basto)
  322. Followup-To: comp.unix.aix
  323. Lines: 1629
  324. Approved: news-answers-request@MIT.Edu
  325.  
  326. Archive-name: aix-faq/part1
  327. Last-modified: Dec 12, 1992
  328. Version: 2.0
  329.  
  330.  
  331. Version: $Id: aix.faq,v 2.0 12/12/92 basto $
  332.  
  333. Frequently Asked Questions to AIX 3.x and IBM RS/6000
  334. _____________________________________________________
  335.  
  336. This posting contains frequently asked questions (and answers) about the
  337. IBM RS/6000 series workstations and AIX version 3.  All input is very
  338. welcome, please mail it to basto@cactus.org.
  339.  
  340. The list is split into two articles so it can pass thru most mailers.
  341. I cannot promise any precise periodic posting but I'll try to post an
  342. updated FAQ roughly once a month to comp.unix.aix and to news.answers.
  343. Please let your input continue, I am most thankful for all of it.
  344.  
  345. If you see a From: line it means that whatever follows is either an
  346. unabridged or slightly edited version of the input I have received, and
  347. that I have not verified its contents.  If there is no From: line, I
  348. probably know what I am talking about, and the entry is edited from
  349. various sources.
  350.  
  351. All entries are numbered with major and minor subject number, e.g.
  352. 3.05.  If the subject is preceded by an asterisk, that entry has been
  353. changed or added since the last posting.
  354.  
  355. The comp.unix.aix group is really for AIX on the four platforms -- RT,
  356. PS/2, 370 and RS/6000, but it has 90% or more of its traffic covering
  357. AIX 3.x and the RS/6000.  The newsgroups comp.sys.ibm.pc.rt and
  358. comp.sys.ibm.ps2.hardware discuss the PC/RT, mostly hardware and AOS 4.3,
  359. and on PS/2 hardware respectively.  There is no group on AIX for the 370.
  360.  
  361. This article only covers AIX 3.x and the RS/6000, except when
  362. specifically noted.
  363.  
  364. If you post questions to comp.unix.aix, please be sure to indicate:
  365.  
  366. - the machine type (not all questions are to the RS/6000) and brief
  367.   configuration, e.g. 64 MB RAM, 48 MB swap space (this is actually
  368.   bad), 1.2 GB XYZ hard drive, etc.
  369.  
  370. - the exact AIX version number, i.e. AIX 3.1 is NOT sufficient, whereas
  371.   AIX 3.1.5 or AIX 3.1 with the 3005 update is.
  372. ______________________________________________________________________________
  373. Table of contents:
  374.  
  375. 1.00  The AIX operating system - what is it?
  376. 1.01  I know neither Unix nor AIX - where do I find more information?
  377. 1.02  I am used to Unix systems programming, why should I learn SMIT?
  378. 1.03  What is the Object Database?
  379. 1.04  How do I get rid of the verbose error messages?
  380. 1.05  How do I make an informative prompt in the shell?
  381. 1.06  How do I import an /etc/passwd or /etc/group file from another box?
  382. 1.07  How do I put my own text into InfoExplorer?
  383. 1.08  Who has a termcap/terminfo source for aixterm or the HFT console?
  384. 1.09 *Which release of AIX do I have?
  385. 1.10  Some known problems, telnet, accounting, who
  386. 1.11  Other hints, fsck of /, X-windows and alt-cntl-backspace
  387. 1.12 *How do I shrink /usr?
  388. 1.13 *How do I shrink the default paging space on hd6?
  389. 1.14 *How do I make a filesystem larger than 2 Gig?
  390. 1.15  How do I see/change system parameters like number of processes per user?
  391. 1.16  My /dev/null seems to have disappeared or become a plain file, why?
  392. 1.17  The swapper seems to use extreme amount of paging space, why?
  393. 1.18  How much should I trust the ps memory reports?
  394. 1.19 *How do I mount a floppy disk as a filesystem?
  395. 1.20 *Some info about tape backups
  396. 1.21 *How do I do remote backup?
  397. 1.22  How do I backup a multi-disk volume group?
  398. 1.23  How do I put multiple backups on a single 8mm tape?
  399. 1.24 *How do I remove a committed lpp?
  400. 1.25 *My named dies frequently, why?
  401. 1.26 *How do I trace ethernet packets on an AIX system?
  402.  
  403. 2.00  C/C++
  404. 2.01  I cannot make alloca work
  405. 2.02  How do I compile my BSD programs?
  406. 2.03  Isn't the linker different from what I am used to?
  407. 2.04  How do I link my program with a non-shared /lib/libc.a?
  408. 2.05  How do I make my own shared library?
  409. 2.06  Linking my program fails with strange error, why?
  410. 2.07 *What's with malloc()?
  411. 2.08  Why does xlc complain about 'extern char *strcpy()'
  412. 2.09  Why do I get 'Parameter list cannot contain fewer ....'
  413. 2.10  Why does xlc complain about '(sometype *)somepointer = something'
  414. 2.11  Some more common errors
  415. 2.12  Can the compiler generate assembler code?
  416. 2.13  Curses
  417. 2.14  How do I speed up linking?
  418. 2.15  What is deadbeef?
  419.  
  420. 3.00  Fortran and other compilers
  421. 3.01  I have problems mixing fortran and C code, why?
  422. 3.02  How do I statically bind fortran libraries and dynamically bind
  423.       C libraries?
  424. 3.03  How do I check if a number is NaN?
  425.  
  426. 4.00  Public Domain software
  427. 4.01 *How do I find PD software?
  428. 4.02 *Are there any ftp sites?
  429. 4.03  General hints
  430. 4.04 *GNU Emacs
  431. 4.05 *gcc/gdb
  432. 4.06 *GNU Ghostscript 2.3
  433. 4.07 *TeX
  434. 4.08  Perl
  435. 4.09  X-Windows
  436. 4.10  bash
  437. 4.11  Elm
  438. 4.12 *Oberon 2.2
  439. 4.13 *Kermit
  440. 4.14  Gnu dbm
  441. 4.15  tcsh
  442. 4.16  Kyoto Common Lisp
  443. 4.17  TCL
  444. 4.18  Expect
  445.  
  446. 5.00  Third party products
  447. 5.01  Disk/Tape/SCSI
  448. 5.02  Disks
  449. 5.03  Memory
  450. 5.04  Others
  451. 5.05  IBM List of third party products
  452. 5.06 *C++ compilers
  453.  
  454. 6.00  Miscellaneous other stuff
  455. 6.01  Can I get support by email?
  456. 6.02  Some RS232 hints
  457. 6.03  VT100 key bindings for aixterm
  458. 6.04  What publications are available for AIX and RS/6000?
  459. 6.05  Some acronyms
  460.  
  461. 7.00  How do I get this by mailserver or ftp?
  462. 7.01  Contributors
  463. ______________________________________________________________________________
  464. 1.00: The AIX operating system - what is it?
  465.  
  466. This is best answered by reading the text files in /usr/lpp/bos.  The
  467. README file there contains general information and the bsdadm file
  468. contains useful information if you know BSD and/or SystemV.
  469.  
  470. The last release for the RT PC is 2.2.1. The latest release for
  471. PS/2s and Intel architecture machines is AIX 1.3; for PS/2s only, 1.2.1.
  472. For the RS/6000, there are two major levels, 3.1 and 3.2, and various
  473. intermediate levels.
  474.  
  475.  
  476. 1.01: I know neither Unix nor AIX - where do I find more information?
  477.  
  478. Quite a number of questions posted to comp.unix.aix show that AIX is
  479. people's first experience with Unix.  If this is the case with you, you
  480. are advised to look at the other newsgroups in the comp.unix hierarchy,
  481. in particular comp.unix.questions (for basic questions) or
  482. comp.unix.wizards (for difficult questions).  These two groups have a
  483. common FAQ posting as well.
  484.  
  485. If you need information about C programming, try comp.lang.c or comp.std.c,
  486. the latter for Standard ANSI C issues.  comp.lang.c has a FAQ posting.
  487.  
  488.  
  489. 1.02: I am used to Unix systems programming, why should I learn SMIT?
  490.  
  491. Using SMIT is probably very different from your normal way of doing
  492. system administration, but could prove very useful in the long run.  In
  493. some areas, in particular TCP/IP, NFS, etc., you also have the
  494. possibility of doing things the "normal" way, but it is unfortunately
  495. difficult to know exactly when the "normal" way works.  Again, always
  496. using SMIT, is probably your best way to go, even when you have to learn
  497. a new tool.
  498.  
  499. What SMIT actually does is to call a large number of specific tools for
  500. each part of the system administration.  The commands called and the
  501. output they produce are stored in the files smit.script and smit.log in
  502. your home directory.  Looking in smit.script may teach you more about
  503. system administration.
  504.  
  505.  
  506. 1.03: What is the Object Database?
  507.  
  508. The Object Database Manager, ODM, stored in /etc/objrepos, is AIX's way
  509. of storing all the system management information.  Under most
  510. circumstances, only SMIT or the commands SMIT call (see above) should be
  511. used to change the ODM.
  512.  
  513. A harmless way to look at the ODM is to use odmget <Class> where <Class>
  514. is one of the files in /etc/objrepos.
  515.  
  516. The very interested user can use the ODM editor, odme, to navigate the
  517. ODM in detail.  Modifying the ODM should only be attempted if you know
  518. exactly what you are doing.
  519.  
  520.  
  521. 1.04: How do I get rid of the verbose error messages?
  522.  
  523. Many of the messages from the Unix commands are available in different
  524. languages.  This is controlled by the LANG environment variable, the
  525. default being En_US meaning English in the US.  All the default messages
  526. have a message number associated with them, e.g.:
  527.  
  528. $ cat no-such-file
  529. cat: 0652-050 Cannot open no-such-file.
  530.  
  531. If you prefer the terser Unix-looking error message, set your
  532. environment LANG to C, and you will get:
  533.  
  534. $ cat no-such-file
  535. cat: Cannot open no-such-file.
  536.  
  537.  
  538. 1.05: How do I make an informative prompt in the shell?
  539.  
  540. In the Korn Shell (ksh), the PS1 variable is expanded each time it is
  541. printed, so you can use:
  542.  
  543. $ myhost=`hostname`
  544. $ PS1='$LOGNAME@$myhost $PWD \$ '
  545.  
  546. to get, e.g.
  547.  
  548. bengsig@ieibm1 /u/bengsig $
  549.  
  550. In the C-shell, use:
  551.  
  552. % set myhost=`hostname`
  553. % alias cd 'chdir \!*' > /dev/null; set prompt="$LOGNAME@$myhost $cwd % "'
  554. % cd
  555.  
  556. to get, e.g.
  557.  
  558. bengsig@dkunix9 /u/bengsig/aixfaq %
  559.  
  560. There is no easy solution in the Bourne Shell.  Use the Korn Shell instead.
  561.  
  562.  
  563. 1.06: How do I import an /etc/passwd or /etc/group file from another box?
  564.  
  565. Make sure that you run usrck and pwdck (/etc/passwd) and grpck
  566. (/etc/group) to let AIX work its password/group magic.
  567.  
  568.  
  569. 1.07: How do I put my own text into InfoExplorer?
  570.  
  571. With AIX 3.1, you cannot do it.  AIX 3.2 has a product called
  572. InfoCrafter that allows you to do that.
  573.  
  574.  
  575. 1.08: Who has a termcap/terminfo source for the HFT console?
  576.  
  577. The console used on the RISC System/6000, the PS/2 and the RT can be
  578. used as a terminal on another system with the termcap below.  You can find
  579. this and other termcaps in /lib/libtermcap/termcap.src, including IBM
  580. specific ones.  The terminfo sources are stored in /usr/lib/terminfo/*.ti.
  581. This termcap can also be used from an aixterm window.
  582.  
  583. hf|hft|hft-c|ibm8512|ibm8513|IBM_High_Function_Terminal:\
  584.     :co#80:li#25:am:ht:\
  585.     :cm=\E[%i%d;%dH:ti=\E[25;1H:te=\E[20h:\
  586.     :nd=\E[C:up=\E[A:do=^J:ho=\E[H:\
  587.     :bs:sf=\E[S:ec=\E[%dX:\
  588.     :cl=\E[H\E[J:cd=\E[J:ce=\E[K:\
  589.     :AL=\E[%dL:DL=\E[%dM:al=\E[L:dl=\E[M:\
  590.     :im=\E[4h:ei=\E[4l:mi:\
  591.     :dm=\E[4h:ed=\E[4l:\
  592.     :so=\E[7m:se=\E[m:ul=\E[4m:ue=\E[m:\
  593.     :md=\E[1m:mr=\E[7m:mb=\E[5m:me=\E[m:\
  594.     :as=^N:ae=^O:sc=\E[s:rc=\E[u:\
  595.     :kl=\E[D:kb=^H:kr=\E[C:ku=\E[A:kd=\E[B:kh=\E[H:\
  596.     :kn#10:k1=\E[001q:k2=\E[002q:k3=\E[003q:k4=\E[004q:k5=\E[005q:\
  597.     :k6=\E[006q:k7=\E[007q:k8=\E[008q:k9=\E[009q:k0=\E[010q:\
  598.     :is=\Eb\E[m^O\E[?7h:rs=\Eb\E[m^O\E[?7h\E[H\E[J:
  599.  
  600.  
  601. 1.09: Which release of AIX or other products do I have?
  602.  
  603. The command 'lslpp -h bos.obj' will show all lines referring to the BOS,
  604. Basic Operating System.  E.g.:
  605.  
  606. Option Name          State      Event      Date      Release         User Name
  607.  
  608. -------------------- ---------- ---------- --------- --------------- ----------
  609. bos.obj              INACTIVE   COMMIT     02/03/90  03.01.0000.0000 root
  610.                      INACTIVE   APPLY      06/25/90  03.01.0000.0001 root
  611.                      INACTIVE   COMMIT     06/25/90  03.01.0000.0001 root
  612.                      INACTIVE   APPLY      11/16/90  03.01.0002.0015 root
  613.                      INACTIVE   COMMIT     11/16/90  03.01.0002.0015 root
  614.              ACTIVE     COMMIT     05/07/91  03.01.0005.0012 root
  615.  
  616. gives the history for the BOS lpp.  The last line, column four, tells
  617. that this is release 3.1.5.  (Note that '3' in 3005 has nothing to do
  618. with '3' in 3.1.5 - we should stop calling the versions 3005, etc.  and
  619. call it by its real version number 3.1.5).
  620.  
  621. To see a listing of everything installed use lslpp -l '*', then use
  622. lslpp with the -h option as above to get a history of a particular lpp.
  623.  
  624. Here is a description on IBM's release numbering scheme:
  625.  
  626. From: jswillia@nycvmic2.vnet.ibm.com
  627.  
  628. The output of lslpp -h bos.obj shows a release number similar to
  629. 03.01.0002.0003.
  630.  
  631. Contrary to your description and some other news items, this should be
  632. referred to as 3.1.2 not 3002. The 3002 numbering is used to indicate
  633. a PTF update tape. There are two types of PTF tapes 300x and 200x.
  634. The 300x tapes are full PTF's to update all previous levels to 3.1.x level
  635. The 200x tapes are incremental tapes and only apply to level 3.1.(x-1),
  636. ie 2004 updates 3.1.3 to 3.1.4 and will not work with 3.1.2 at all,
  637. whereas 3004 would update 3.1.0, 3.1.1, 3.1.2, and 3.1.3 upto level 3.1.4.
  638. The release number is defined as follows, 03.01 is the major release number
  639. shortened to 3.1 and the 0002 in the example is the minor release number.
  640. Major releases are provided with full installable tapes, whereas minor
  641. releases are obtained by applying a PTF update tape to a previous level
  642. as indicated above. The fourth number is used by development and has no
  643. validity(?) outside of development ( note it may be of interest during
  644. defect resolution ).
  645.  
  646. For AIX 3.2, it's a completely different scheme.  You may come across
  647. discussions on releases 3.2.0, 3.2.1, 3.2.2, or 3.2.3.  There is no
  648. absolute way to tell which of these you are running since the newer
  649. releases are simply 3.2.0 with some sets of PTFs added.  And since one
  650. can apply selective fixes it is possible that there could be many
  651. slightly different variations of 3.2 in use.  IBM is currently working
  652. on resolving this situation.
  653.  
  654.  
  655. 1.10: Some known problems, telnet, accounting, who
  656.  
  657. There are known problems in telnetd in 3.1.2 and 3.1.3 (the RS/6000 may
  658. lock when telnet'ing to it, use the 3001 telnetd or update to 3.1.5),
  659. accounting has a number of problems, and 'who' often displays entries
  660. that do not correspond to active sessions.
  661.  
  662. Following refers to 3.1.2 and 3.1.3.
  663.  
  664. The problem with telnetd seems to be solved in 3.1.5, I do not know about
  665. accounting, but the problem with who is known not to be solved.  The
  666. program below by jfh@rpp386.cactus.org (John F. Haugh) can be used to fix
  667. up your /etc/utmp file:
  668.  
  669. #include <sys/types.h>
  670. #include <utmp.h>
  671. #include <fcntl.h>
  672.  
  673. main ()
  674. {
  675.     int    fd;
  676.     struct    utmp    utmp;
  677.  
  678.     while (1) {
  679.         if ((fd = open ("/etc/utmp", O_RDWR)) < 0)
  680.             exit (1);
  681.  
  682.         while (read (fd, &utmp, sizeof utmp) == sizeof utmp) {
  683.             if (utmp.ut_type == USER_PROCESS &&
  684.                     kill (utmp.ut_pid, 0) != 0) {
  685.                 lseek (fd, - (long) sizeof utmp, 1);
  686.                 utmp.ut_type = DEAD_PROCESS;
  687.                 write (fd, &utmp, sizeof utmp);
  688.             }
  689.         }
  690.         close (fd);
  691.         sleep (60);
  692.     }
  693. }
  694.  
  695. Another utmp program was posted to comp.sources.unix, volume 25, issue
  696. 96 by David W. Sanderson (dws@cs.wisc.edu) that also works on AIX 3.1.
  697.  
  698.  
  699. 1.11: Other hints, fsck of /, X-windows and cntl-alt-backspace
  700.  
  701. - Normally cntl-alt-backspace will kill the X session.  If you add the
  702.   -T option when initializing X, this will not happen.
  703.  
  704. - You should never run fsck on mounted filesystems; you need to be in
  705.   maintenance mode to run fsck on the root filesystem:
  706.  
  707.   1. boot from diskette
  708.   2. select maintenance mode
  709.   3. type /etc/continue hdisk0 exit (replace hdisk0 with boot disk if not
  710.      hdisk0)
  711.   4. fsck /dev/hd4
  712.  
  713.  
  714. 1.12: How do I shrink /usr?
  715. From: mike@bria.UUCP (Michael Stefanik) and Richard Hasting
  716.  
  717. FOR AIX 3.1
  718. -----------
  719.  
  720.  1) Make a backup of /usr
  721.  
  722.         find /usr -print | backup -ivf /dev/rmt0
  723.  
  724.     Use the appropriate tape device if it is not rmt0.
  725.  
  726.  2) shutdown to maintenance mode
  727.  
  728.         shutdown -Fm
  729.  
  730.  3) export LANG=C
  731.  
  732.  4) remove the filesystem and the logical volume
  733.     ignore an error about the "dspmsg" command not found
  734.  
  735.         umount /usr
  736.         rmfs /usr
  737.  
  738.  5) make a new logical volume hd2 and place it on rootvg with desired size
  739.  
  740.         mklv -yhd2 -a'e' rootvg NNN
  741.  
  742.    where NNN is the number of 4 meg partitions
  743.  
  744.  6) create a filesystem on /dev/hd2
  745.  
  746.         crfs -vjfs -dhd2 -m'/usr' -Ayes -p'rw'
  747.  
  748.  7) mount the new /usr filesystem and check it
  749.  
  750.         /etc/mount /usr
  751.         df -v
  752.  
  753.  8) restore from the tape; system won't reboot otherwise
  754.  
  755.         restore -xvf/dev/rmt0
  756.  
  757.  9) Sync and reboot the system; you now have a smaller /usr filesystem
  758.  
  759. FOR AIX 3.2
  760. -----------
  761.  
  762.  1) Remove any unneeded files from /usr.
  763.  
  764.  2) Make sure all filesystems in the root volume group are mounted. If
  765.     not, they will not be included in the re-installed system.
  766.  
  767.  3) Type "mkszfile". This will create "/.fs.size" that contains a list
  768.     of the active filesystems in the root volume group that will be
  769.     included in the installation procedure.
  770.  
  771.  4) Edit .fs.size. Change the size of /usr to what you want.
  772.  
  773.     Example: This .fs.size file shows /usr to be 40MB.
  774.  
  775.                    rootvg 4 hd2 /usr 10 40 jfs
  776.  
  777.     The number 10 is the number of physical partitions for the filesystem
  778.     and the 40 is 40 MB. Most systems have a physical partition
  779.     size of 4 MB. Therefore, the second number (40) will always be
  780.     4 times the previous number (10). Note, however, that a model 320
  781.     with a 120 MB drive will have a physical partition size of only 2 MB,
  782.     and the total MB is therefore twice the number of physical partitions.
  783.     The first number (4) in the .fs.size file represents the PP size.
  784.  
  785.     If you want to reduce the size of /usr from 40 MB to 32 MB,
  786.     edit the /usr entry to:
  787.  
  788.         rootvg 4 hd2 /usr 8 32 jfs
  789.  
  790.     IMPORTANT: Make sure that you DO NOT enter a value which is less
  791.     than the size of the filesystem required to contain the current
  792.     data. Doing so will cause the re-installation procedure to fail.
  793.  
  794.  5) chdev -l rmt0 -a block=512 -T
  795.  
  796.  6) Unmount all filesystems that are NOT in the root volume group.
  797.  
  798.  7) Varyoff all user-defined volume groups, if any
  799.  
  800.         varyoffvg VGname
  801.  
  802.  8) Export the user-defined volume groups, if any
  803.  
  804.         exportvg VGname
  805.  
  806.  9) With a tape in the tape drive, type
  807.  
  808.         mksysb /dev/rmt0
  809.  
  810.      This will do a complete system backup, which will include
  811.      information (in the .fs.size file) for the installation procedure
  812.      on how large the filesystems are to be created.
  813.  
  814.  10) Follow the instructions in the Installation Kit under "How to
  815.      Install and perform maintenance from Diskettes" using the
  816.      diskettes and tape that you created in the previous steps.
  817.      DO NOT select the option "Reinstall AIX with Current System
  818.      Settings" during the install procedure. The new system must be
  819.      installed using the option "Install AIX with Current System
  820.      Settings" for the logical volume size changes to take affect.
  821.  
  822.  11) When the operating system installation is complete, you may then
  823.      import the information into your newly installed operating system
  824.      for any user-defined volume groups.
  825.  
  826.          importvg -y VGname PVname
  827.  
  828.      where "VGname" is the name of the volume group, and "PVname" is
  829.      the name of any one of the physical volumes in the volume group.
  830.  
  831.  12) Varyon your user-defined volume groups
  832.  
  833.          varyonvg VGname
  834.  
  835.  The reduction of the filesystems is now complete.
  836.  
  837.  
  838. 1.13: How do I shrink the default paging space on hd6?
  839.  
  840. 1) create a paging space to use temporarily
  841.    mkps -s 20 -a rootvg
  842.  
  843. 2) change default paging space hd6 so it is not used at next reboot
  844.    chps -a n hd6
  845.  
  846. 3) For AIX 3.1, edit /etc/rc.boot4 and change swapon /dev/hd6;
  847.    for AIX 3.2, edit /sbin/rc.boot and change swapon /dev/hd6
  848.    swapon /dev/paging00
  849.  
  850. 4) Update information in boot logical volume
  851.    bosboot -a             (3.1)
  852.    bosboot -a -d hdisk0   (3.2)
  853.  
  854. 5) shutdown and reboot
  855.  
  856. 6) remove current hd6 and create a new one of smaller size
  857.    rmps hd6
  858.    mklv -y hd6 -t paging rootvg <size of PS in 4 Meg blocks>
  859.  
  860. 7) Re-edit /etc/rc.boot4 (3.1), /sbin/rc.boot (3.2) to swap to /dev/hd6
  861.    swapon /dev/hd6
  862.  
  863. 8) Update information in boot logical volume
  864.    bosboot -a             (3.1)
  865.    bosboot -a -d hdisk0   (3.2)
  866.  
  867. 9) change current paging device (paging00) so it is inactive at next boot
  868.    chps -a n /dev/paging00
  869.  
  870. 10) shutdown, reboot, remove paging00 using the command:
  871.     rmps paging00
  872.  
  873.  
  874. 1.14 *How do I make a filesystem larger than 2 Gig?
  875.  
  876. The largest filesystem under AIX is 2 Gigabytes because the largest
  877. signed integer is 2**32 - 1.
  878.  
  879.  
  880. 1.15: How do I see/change system parameters like number of processes per user?
  881.  
  882. You can use SMIT as described below or simply use the lsattr/chdev pair.
  883. The former will list the current setting as in:
  884.  
  885.   # lsattr -E -l sys0 -a maxuproc
  886.   maxuproc 40 Maximum # of processes allowed per user True
  887.  
  888. and you can then increase the maxuproc parameter:
  889.  
  890.   # chdev -l sys0 -a maxuproc=200
  891.   sys0 changed
  892.